package com.jgzx.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel("用户DTO")
@Data
public class UserDTO {

    @ApiModelProperty(value = "用户id", example = "null")
    private Long UserId;

    @ApiModelProperty(value = "用户名称")
    @NotEmpty(message = "用户名称不能为空")
    private String UserName;

    @ApiModelProperty(value = "用户地址")
    @NotEmpty(message = "用户地址")
    private String Address;

    @ApiModelProperty(value = "用户年龄")
    @NotEmpty(message = "用户年龄不能为空")
    private String age;
}
